package com.atos.optical.common;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author wanghra
 * @version 1.0
 * @description
 * @date 2025/6/20
 */
public class BaseServiceImpl<K extends BaseMapper<T>, T> extends ServiceImpl<K, T> implements BaseService<T> {
    @Autowired
    protected K baseMapper;

    public BaseServiceImpl() {
    }

    public IPage<T> pageByQuery(IPage<T> query) {
        return this.baseMapper.pageByQuery(query);
    }
}
